package com.niuwa.p2p.dao.fund;

import org.apache.ibatis.annotations.Param;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.fund.CustAccount;
@MyBatisDao
public interface CustAccountDao {
    int deleteByPrimaryKey(String accountNo);

    int insert(CustAccount record);

    int insertSelective(CustAccount record);

    CustAccount selectByPrimaryKey(String accountNo);

    int updateByVersion(CustAccount record);

    int updateByPrimaryKey(CustAccount record);
    
    
    /**
	 * 根据用户及账户状态查询资金账户
	 * @param custId 客户Id
	 */
	public CustAccount selectCustAcctByIdAndStatus(@Param(value="custId")long custId,@Param(value="accountStatus")String accountStatus);
	


	/**
	 * 资金账户【web】
	 * @param custId 客户Id
	 * @return Account 账户实体
	 */
	public CustAccount getAccountInfoByCustId(long custId);
}